package com.eax.ModelLayer;

public class PersonModel {
	private int id;
	private String name;
	private String address;
	private int postalCode;
	private String city;
	private int telephone;

	public PersonModel(int id, String name, String address, int postalcode, String city, int telephone){
		this.id = id;
		this.name = name;
		this.address = address;
		this.postalCode = postalcode;
		this.city = city;
		this.telephone = telephone;
	}

	public static void main(String[] args) {
	}

	public void setId(int id){
		this.id = id;
	}

	public int getId(){
		return id;
	}

	public void setName(String name){
		this.name = name;
	}

	public String getName(){
		return name;
	}

	public void setAddress(String address){
		this.address = address;
	}

	public String getAddress(){
		return address;
	}

	public void setPostalCode(int postalCode){
		this.postalCode = postalCode;
	}

	public int getPostalCode(){
		return postalCode;
	}

	public void setCity(String city){
		this.city = city;
	}

	public String getCity(){
		return city;
	}

	public void setTelephone(int telephone){
		this.telephone = telephone;
	}

	public int getTelephone(){
		return telephone;
	}

	public void printPerson(){
		System.out.println("ID: " + id);
		System.out.println("Name: " + name);
		System.out.println("Address: " + address);
		System.out.println("Postal code: " + postalCode);
		System.out.println("City: " + city);
		System.out.println("Telephone number: " + telephone);
	}
}
